<div class="col-sm-12 mt20">
<div class="panel panel-default">
    <div class="panel-body">
        <div class="form-group form-inline">
            <div class="col-sm-12">
                <div class="col-sm-2">
                  <input type="text" class="form-control" ng-model="searchform.title" placeholder="公告标题">
                </div>
                <div class="col-sm-6">
                </div>
                <div class="col-sm-2">
                    <input type="button "  class="btn btn-success search form-control"  ng-click="create()"  value="创建公告">
                </div>
                <div class="col-sm-2">
                    <input type="button "  class="btn btn-info search form-control"  ng-click="load()"  value="立即搜索">
                </div>
            </div>
        </div>
    </div>
</div>
           
<div class="panel panel-default">

  <table class="table table-hover table-bordered">
  
    <thead class="panel panel-heading">
      <tr>
        <th class="col-md-4 text-center">公告标题</th>
        <th class="col-md-2 text-center">公告状态</th>
        <th class="col-md-2 text-center">排序</th>
        <th class="col-md-2 text-center">创建时间</th>
        <th class="col-md-2 text-center">操作</th>
        
      </tr>
    </thead>
  
    <tbody>
      <tr ng-repeat="obj in objs">
        <td class="">{{obj.title}}</td>
        <td class="text-center">{{obj.statename}}</td>
        <td class="form-horizontal ">
          <div class="col-sm-6">
            <input class="form-control input-sm" 
            style="height:22px;" 
            type="text" 
            value="{{obj.asort}}" 
            ng-model="obj.asort">
          </div>
          <a ng-click="asort(obj.id, obj.asort)" class="btn btn-info btn-xs">gogo</a> 
        </td>
        <td class="text-center">{{obj.sdate}}</td>
        <td class="text-center">
          <a ng-show="obj.state=='1'" ng-click="stop(obj.id)" class="btn btn-primary btn-xs">隐藏</a>
          <a ng-show="obj.state=='0'" ng-click="start(obj.id)" class="btn btn-danger btn-xs">显示</a>
          <a ng-click="edit(obj.id)" class="btn btn-success btn-xs">编辑</a>
        </td>
      </tr>
    </tbody>
  </table>


  <div class="text-right">

    <pagination 
      total-items="bigTotalItems" 
      ng-model="bigCurrentPage" 
      max-size="maxSize" 
      class="pagination-sm" 
      boundary-links="true" 
      ng-change="load()"
      items-per-page="itemsPerPage"
      previous-text="上一页"
      next-text="下一页"
      first-text="首页"
      last-text="末页"
      rotate="false">
    </pagination>

  </div>
  
 </div>
</div>